angular.module('Barcode').config(['$stateProvider', '$urlRouterProvider',
    function($stateProvider, $urlRouterProvider) {
        $stateProvider
            //单品档案
            .state('index.SPArchives', {
                url: '/SP/Archives',
                templateUrl: 'modules/Barcode/client/views/SPArchives.client.view.html',
                controller: 'SPArchivesController',
                access: { requiredAuthentication: true }
            })
            //单品流水
            .state('index.SPStream', {
                url: '/SP/Stream',
                templateUrl: 'modules/Barcode/client/views//SPStream.client.view.html',
                controller: 'SPStreamController',
                access: { requiredAuthentication: true }
            });
    }
]);
